import config
import requests
class HomeAPI:
    def __init__(self):
        self.banner_url=config.BASE_URL+"/banner/1"
        self.theme_url=config.BASE_URL+"/theme?ids=1,2,3"
        self.recent_url=config.BASE_URL+"/product/recent"
    def get_banner_info(self):
        return requests.get(url=self.banner_url)
    def get_theme_info(self):
        return requests.get(url=self.theme_url)
    def get_recent_info(self):
        return requests.get(url=self.recent_url)
if __name__ == '__main__':
    print(HomeAPI().banner_url().json())